﻿using System;

/*Write a program that creates an array containing all letters from the alphabet (A-Z). Read a word from
 * the console and print the index of each of its letters in the array.
*/
    class TheAlphabet
    {
        static void Main()
        {
            int[] array = new int[26];

            for (int i = 0; i < array.Length; i++)
            {
                array[i] = 'a' + i;                
            }
            string word = "crum";
            for (int i = 0; i < word.Length; i++)
            {
                for (int j = 0; j < array.Length; j++)
                {
                    if (word[i] == array[j])
                    {
                        Console.WriteLine("Letter {0}'s index is: {1}", word[i], j);
                        break;
                    }
                }
            }
        }
    }

